﻿<UserControl x:Class="SilverShader.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"             
    Loaded="UserControl_Loaded" xmlns:my="clr-namespace:EasyPainter.Imaging.Silverlight">

    <Grid x:Name="LayoutRoot" Background="Black">
        <StackPanel Width="640" Height="690">
            <TextBlock FontSize="12" Text="SilverShader - Silverlight pixel shader demo application by René Schulte for Coding4Fun" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Center" VerticalAlignment="Stretch" />
            <StackPanel >
                <Rectangle Name="Viewport" Width="640" Height="480" RenderTransformOrigin="0.5,0.5" Margin="0,10,0,0" />
                <Grid Margin="10">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="60" />
                        <ColumnDefinition Width="150" />
                        <ColumnDefinition />

                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="60" />
                    </Grid.RowDefinitions>

                    <TextBlock Text="Source" Style="{StaticResource TextBlockStyle}" Grid.Column="0" Grid.Row="0" />
                    <Button Name="BtnOpenPic" Click="BtnOpenPic_Click" Width="32" Height="32" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="0" Grid.Row="1" >
                        <Button.Content>
                            <Image Source="Data/Icons/Folder2.png" />
                        </Button.Content>
                    </Button>
                    <ToggleButton Name="BtnCapture" Click="BtnCapture_Click" Width="32" Height="32" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="0" Grid.Row="2" >
                        <ToggleButton.Content>
                            <Image Source="Data/Icons/video.png" />
                        </ToggleButton.Content>
                    </ToggleButton>

                    <TextBlock Text="Shader" Style="{StaticResource TextBlockStyle}" Grid.Column="1" Grid.Row="0" />
                    <ComboBox Name="CmbShaders" HorizontalAlignment="Left" VerticalAlignment="Top" Width="125" Grid.Column="1" Grid.Row="1" SelectionChanged="CmbShaders_SelectionChanged" />

                    <Grid Name="ShaderParameters" Grid.Column="2" Grid.RowSpan="3" />
                </Grid>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" >
                <HyperlinkButton TargetName="_blank" Content="Icons by Axialis Team" NavigateUri="http://www.axialis.com/free/icons" Margin="12" Foreground="LightBlue" />
                <HyperlinkButton TargetName="_blank" Content="Color Picker and Slider control by Nokola" NavigateUri="http://nokola.com/blog/post/2010/02/08/EasyPainter-Source-Pack1-Color-Picker-RangeSlider-Small-Expander-Fast-Drop-Shadow-and-more!.aspx" Margin="12" Foreground="LightBlue" />
            </StackPanel>
        </StackPanel>

    </Grid>
</UserControl>
